const fs = require("fs");
const cwd = process.cwd();
const path = require("path");
const buildConf = require("./conf.js");
const mainPath = path.join(cwd, buildConf.mainRepertory);
function join(paths){return path.join(__dirname, paths)};




module.exports = function getTemplateConfs(packageJsons, conf) {
  const baseContent = fs.readFileSync(join(`./indexHtml.temp.js`));
  conf.dir.mk(path.join(conf.workspacePath, `./src`))
  fs.writeFileSync(path.join(conf.workspacePath, `./src/main.js`),baseContent);
};
